package com.longge.websocket.dto;

import java.io.Serializable;
import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ServerTextMessage implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1814653353949947278L;
	
	@JsonFormat(pattern = "HH:mm:ss", timezone = "GMT+8")
	@JSONField(format = "HH:mm:ss")
	private Date time;

	private String sender;
	
	private String message;
	/**
	 * if private chat message, default false
	 */
	private boolean privateChat;
}
